package com.ucode.cgms.mapper;

import com.ucode.model.cgms.CgmsJointServiceUser;
import com.ucode.springboot.starter.mybatis.core.base.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 陪玩订单服务人员 Mapper
 * @Author: liliang
 * @Date: 2025/5/9 21:52
 * @Version: 1.0
 */
@Mapper
public interface CgmsJointServiceUserMapper extends BaseMapper<CgmsJointServiceUser, Long> {
    /**
     * 查询订单服务人员列表
     * @param orderId
     * @return
     */
    public List<CgmsJointServiceUser> queryListByOrderId(Long orderId);

    /**
     * 查询订单服务人员
     * @param orderId
     * @param serviceUserId
     * @return
     */
    public CgmsJointServiceUser queryOne(@Param("orderId") Long orderId,@Param("serviceUserId") Long serviceUserId);

    /**
     * 批量添加
     * @param entitys
     * @return
     */
    public int batchInsert(List<CgmsJointServiceUser> entitys);

}
